/*
package com.cxb.redis;

import lombok.RequiredArgsConstructor;
import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class MyRedisson {
    private final RedissonClient redissonClient;
    public void redis(){

        RLock lock = redissonClient.getLock("lock");
        lock.lock();
        System.out.println("lock");
        lock.unlock();
    }

}
*/
